package com.sky.mapper;

import com.sky.annotation.aop.AutoFill;
import com.sky.entity.User;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface UserMapper {

    User getByOpenId(@Param("openId") String openId);

    void insert(User user);

    User getById(@Param("userId") Long userId);

    Integer countByMap(Map map);
}
